home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / parser.jar / com / sun / xml / parser / ExternalEntity.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-02-23  |  885 b   |  27 lines

  1. package com.sun.xml.parser;
  2.  
  3. import java.io.IOException;
  4. import java.net.URL;
  5. import org.xml.sax.EntityResolver;
  6. import org.xml.sax.InputSource;
  7. import org.xml.sax.Locator;
  8. import org.xml.sax.SAXException;
  9.  
  10. class ExternalEntity extends EntityDecl {
  11.    String systemId;
  12.    String publicId;
  13.    String notation;
  14.  
  15.    public ExternalEntity(Locator var1) {
  16.    }
  17.  
  18.    public InputSource getInputSource(EntityResolver var1) throws SAXException, IOException {
  19.       InputSource var2 = var1.resolveEntity(this.publicId, this.systemId);
  20.       if (var2 == null) {
  21.          var2 = Resolver.createInputSource(new URL(this.systemId), false);
  22.       }
  23.  
  24.       return var2;
  25.    }
  26. }
  27.